package com.scope.imageFilters;

import org.opencv.imgproc.Imgproc;

import android.content.Context;

public class GrayScale extends BaseFilter<Object> {
    public GrayScale(Context context) {
        super(context);
        mName = getFilterName();
    }

    public static String getFilterName() {
        return "GrayScale";
    }

    @Override
    protected void applyFilter() {
		mFilteredImageMat = MatZeros();
		Imgproc.cvtColor(mSourceImageMat, mFilteredImageMat, Imgproc.COLOR_RGB2GRAY);
    }
}
